<?php
$pos1 = strpos($_SERVER['REQUEST_URI'],'/');
$pos2 = strpos($_SERVER['REQUEST_URI'],'/',$pos1+1);
$url  = substr($_SERVER['REQUEST_URI'],$pos1,$pos2+1);

// Duong dan den thu muc goc cua website
define("URL_ROOT",$url);
// Duong dan vat ly den thu muc chua website
define("DOC_ROOT",$_SERVER["DOCUMENT_ROOT"].$url);
// Duong dan den thu muc administrator
define("ADMIN_URL",URL_ROOT."admin");
define("ADMIN_ROOT",DOC_ROOT."admin/");

// Server chua csdl mysql
define("SERVER","localhost");
// Account cua mysql
define ("USER","SA"); 
// Password cua mysql
define ("PASS","123456"); 
// Database cua website
define ("DB","shop");
// Din nghia so cot hien thi tren trang
define ("COL_NUM",3);

$site_title = "Welcome to Seleni";
?>